execute if score @s rmr.item.hell_grail.use matches 1.. if items entity @s weapon.mainhand carrot_on_a_stick[custom_data={id:"rmr:hell_grail"}] run function rmr:item/hell_grail/switch
scoreboard players set @s rmr.item.hell_grail.use 0